package com.rest.util;

import io.reactivex.ObservableTransformer;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.schedulers.Schedulers;

/**
 * @Description: java类作用描述
 * @Author: lzp
 * @CreateDate: 2022/1/10 9:30
 * @UpdateRemark: 更新说明
 */
public class RxHelper {
    public static <T> ObservableTransformer<T, T> observableIO2Main() {
        return upstream -> upstream.subscribeOn(Schedulers.io())
                .observeOn(AndroidSchedulers.mainThread());
    }
}
